/*
 * @Description:
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-05-31 10:49:01
 * @FilePath: /yuxiuproweb/src/api/app/image.js
 */
import request from "@/utils/request";

// 查询app_商品_图片;列表
export function listImage(query) {
  return request({
    url: "/app/image/list",
    method: "get",
    params: query,
  });
}

// 查询app_商品_图片;详细
export function getImage(productImageId) {
  return request({
    url: "/app/image/" + productImageId,
    method: "get",
  });
}

// 新增app_商品_图片;
export function addImage(data) {
  return request({
    url: "/app/image",
    method: "post",
    data: data,
  });
}

// 修改app_商品_图片;
export function updateImage(data) {
  return request({
    url: "/app/image",
    method: "put",
    data: data,
  });
}

// 删除app_商品_图片;
export function delImage(productImageId) {
  return request({
    url: "/app/image/" + productImageId,
    method: "delete",
  });
}
